<?php
//用于显示乘法表格
   class S{
	 
	 public function x($i=3){
	 	for($j=1;$j<=$i;$j++){
	 		for($t=1;$t<=$j;$t++){
	 			echo $t.'x'.$j.'='.$t*$j. ' ';
	 		}
	 		echo "<br>";
	 	}
	 }
}

$c = new S();
echo $c->x();

?>
